// JavaScript Document
function register(){

			var mailbox = document.getElementById("us_uname").value;
			var PWD = document.getElementById("us_password").value;
			var cfmPWD = document.getElementById("us_repassword").value;
			var bname = document.getElementById("us_blogname").value;
			var rs_mailbox=true;
			var rs_PWD=true;
			var rs_cfmPWD=true;
			var rs_bname=true;

			var us_uname = document.getElementById("us_uname").value;
			var us_password = document.getElementById("us_password").value;
			var us_repassword = document.getElementById("us_repassword").value;
			var us_blogname = document.getElementById("us_blogname").value;
			var re_us_uname=true;
			var rs_us_password=true;
			var rs_us_repassword=true;
			var rs_us_blogname=true;

			
			
			if(us_uname.length == 0){
				alert("邮箱地址不能为空!");
				return false;
			}else{
					if(us_uname.match("([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+")==null){
				alert("邮箱不格式不正确！");
				}
			}
			
			
			if(us_password.length == 0){
				alert("登入密码不能为空!");
				return false;
			}	
			
			if(us_repassword.length == 0){
				alert("确认密码不能为空!");
				return false;
			}	
			
			if(us_password!=us_repassword){
	
				alert("登入密码和确认密码不一致！");
				return false;
			}
			
			if(us_blogname.length == 0){
				alert("博客昵称不能为空!");
				return false;
			}	
		}
function validate(){
			var us_uname = document.getElementById("us_uname").value;
			var us_password = document.getElementById("us_password").value;

			
			
			if(us_uname.length == 0){
				alert("登录名不能为空!");
				return false;
			}	
			
			
			if(us_password.length == 0){
				alert("密码不能为空!");
				return false;
			}	
		}
